<template>
	<view class="content">
		<image :src="imgSrc" mode="widthFix"></image>
		<view class="textView">
			<text>{{explainTxt}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				staticUrl: this.$config.StaticUrl,
				imgSrc: '',
				contentSrc: '',
				explainTxt: ''
			};
		},
		onLoad: function(option) {
			console.log(option);
			let id = Number(option.id);
			this.explainTxt = this.$config.NounsExplanation[id-2]
			this.imgSrc = this.staticUrl + '/image/data_' + id + '.png'
			if(id == 1) this.explainTxt = this.$config.NounsExplanation[4]
		},
		methods: {}
	};
</script>

<style>
	page {
		background-color: #f5f5f5;
	}

	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100vw;
		height: auto;
		margin: 20rpx auto auto;
	}

	.srcView {
		margin-bottom: 90rpx;
		width: 680rpx;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		font-size: 25rpx;
		color: #333333;
	}

	image {
		margin: 20rpx;
		width: 680rpx;
	}
	.textView {
		width: 650rpx;
	}
</style>
